<?php
namespace yan\editor_frontend\editorxml;
use yii\helpers\Html;
class WebContainerWidget extends WebWidget{
	public function run(){
        $options = $this->options;
        $shtml = '';
        if ($this->parent_type == 'listContainer') {
            $shtml .= Html::tag('li', is_array($this->child) ? implode("\n", $this->child) : $this->child, $options);
        }else{
            $shtml .= is_array($this->child) ? implode("\n", $this->child) : $this->child;
        }
        return $shtml;
    }
}